package cars;

public class Trunk extends Vehicle{
    int tonnage;

    public Trunk() {
    }

    @Override
    public float calRent(int date) {
        return date * getPerRent();
    }

    public Trunk(int tonnage) {
        this.tonnage = tonnage;
    }

    public int getTonnage() {
        return tonnage;
    }

    public void setTonnage(int tonnage) {
        this.tonnage = tonnage;
    }

}
